var db = require("./mysqldb.js")

exports.ttt = function (params, cb) {
    sql = "SELECT * FROM `wl_jzxxq` where ID =?";
    db.query(sql, [1], (result) => {
        cb && cb(result);
    });
}


exports.getindexlist = function (params, cb) {
    sql = "SELECT *,DATE_FORMAT(TJSJ,'%Y-%m-%d') AS SJ FROM `fw_index` "
    db.query(sql, [], (result) => {
        cb && cb(result);
    });
}